// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_REGISTER_ITEM
// * CreateDate    : 2012-1-4 14:00:05
// * Creater       : CodeSmith
// * LastChangeDate: 2012-1-4 14:00:05
// * LastChanger   : 2012-1-4 14:00:05
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class RepRegisterItemTable : TableInfo
    {
        public const string C_TableName = "REP_REGISTER_ITEM";

        public const string C_REGISTER_ITEM_ID = "REGISTER_ITEM_ID";
        public const string C_REGISTER_ID = "REGISTER_ID";
        public const string C_CONTACT_ID = "CONTACT_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_PRODUCT_SPEC_IN = "PRODUCT_SPEC_IN";
        public const string C_PRODUCT_SPEC_OUT = "PRODUCT_SPEC_OUT";
        public const string C_MATERIAL = "MATERIAL";
        public const string C_DIAMETER_OUT = "DIAMETER_OUT";
        public const string C_DIAMETER_IN = "DIAMETER_IN";
        public const string C_LENGTH = "LENGTH";
        public const string C_UNIT = "UNIT";
        public const string C_QTY = "QTY";
        public const string C_PRICE = "PRICE";
        public const string C_TAX_RATE = "TAX_RATE";
        public const string C_REMARK = "REMARK";
        public const string C_LOCATION_CODE = "LOCATION_CODE";
        public const string C_IS_PACKING = "IS_PACKING";
        public const string C_BLUEPRINT_DELIVERY_DATETIME = "BLUEPRINT_DELIVERY_DATETIME";

        public RepRegisterItemTable()
        {
            _tableName = "REP_REGISTER_ITEM";
        }

        protected static RepRegisterItemTable _current;
        public static RepRegisterItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new RepRegisterItemTable();

            _current.Add(C_REGISTER_ITEM_ID, new ColumnInfo(C_REGISTER_ITEM_ID, "RegisterItemId", true, typeof(string)));
            _current.Add(C_REGISTER_ID, new ColumnInfo(C_REGISTER_ID, "RegisterId", false, typeof(string)));
            _current.Add(C_CONTACT_ID, new ColumnInfo(C_CONTACT_ID, "ContactId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_IN, new ColumnInfo(C_PRODUCT_SPEC_IN, "ProductSpecIn", false, typeof(string)));
            _current.Add(C_PRODUCT_SPEC_OUT, new ColumnInfo(C_PRODUCT_SPEC_OUT, "ProductSpecOut", false, typeof(string)));
            _current.Add(C_MATERIAL, new ColumnInfo(C_MATERIAL, "Material", false, typeof(string)));
            _current.Add(C_DIAMETER_OUT, new ColumnInfo(C_DIAMETER_OUT, "DiameterOut", false, typeof(decimal)));
            _current.Add(C_DIAMETER_IN, new ColumnInfo(C_DIAMETER_IN, "DiameterIn", false, typeof(decimal)));
            _current.Add(C_LENGTH, new ColumnInfo(C_LENGTH, "Length", false, typeof(decimal)));
            _current.Add(C_UNIT, new ColumnInfo(C_UNIT, "Unit", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_PRICE, new ColumnInfo(C_PRICE, "Price", false, typeof(decimal)));
            _current.Add(C_TAX_RATE, new ColumnInfo(C_TAX_RATE, "TaxRate", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_LOCATION_CODE, new ColumnInfo(C_LOCATION_CODE, "LocationCode", false, typeof(string)));
            _current.Add(C_IS_PACKING, new ColumnInfo(C_IS_PACKING, "IsPacking", false, typeof(int)));
            _current.Add(C_BLUEPRINT_DELIVERY_DATETIME, new ColumnInfo(C_BLUEPRINT_DELIVERY_DATETIME, "BlueprintDeliveryDatetime", false, typeof(DateTime)));

        }

        public ColumnInfo REGISTER_ITEM_ID
        {
            get { return this[C_REGISTER_ITEM_ID]; }
        }

        public ColumnInfo REGISTER_ID
        {
            get { return this[C_REGISTER_ID]; }
        }

        public ColumnInfo CONTACT_ID
        {
            get { return this[C_CONTACT_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo PRODUCT_SPEC_IN
        {
            get { return this[C_PRODUCT_SPEC_IN]; }
        }

        public ColumnInfo PRODUCT_SPEC_OUT
        {
            get { return this[C_PRODUCT_SPEC_OUT]; }
        }

        public ColumnInfo MATERIAL
        {
            get { return this[C_MATERIAL]; }
        }

        public ColumnInfo DIAMETER_OUT
        {
            get { return this[C_DIAMETER_OUT]; }
        }

        public ColumnInfo DIAMETER_IN
        {
            get { return this[C_DIAMETER_IN]; }
        }

        public ColumnInfo LENGTH
        {
            get { return this[C_LENGTH]; }
        }

        public ColumnInfo UNIT
        {
            get { return this[C_UNIT]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo PRICE
        {
            get { return this[C_PRICE]; }
        }

        public ColumnInfo TAX_RATE
        {
            get { return this[C_TAX_RATE]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo LOCATION_CODE
        {
            get { return this[C_LOCATION_CODE]; }
        }

        public ColumnInfo IS_PACKING
        {
            get { return this[C_IS_PACKING]; }
        }

        public ColumnInfo BLUEPRINT_DELIVERY_DATETIME
        {
            get { return this[C_BLUEPRINT_DELIVERY_DATETIME]; }
        }



    }
}

